const { Comment } = require('../../../model/Comment');
module.exports = async (req, res) => {
    const postId = req._parsedUrl.pathname.substr(1);
    const comments = await Comment.find({ post: postId }).populate('author');
    res.send([comments])
}